package ProxyPattern.dynamicProxy;

import ProxyPattern.staticProxy.UserManager;
import ProxyPattern.staticProxy.UserManagerImpl;

public class Client {

    public static void main(String[] args) {
        LogHandler logHandler = new LogHandler();

        UserManager userManager = (UserManager)logHandler.newProxyInstance(new UserManagerImpl());

        userManager.addUser("1111", "张三");
    }
}
